import treasureChest from '../../Treasurechest/Index.vue'
import treasureDetail from '../../Treasurechest/detail.vue'
import treasurePrize from '../../Treasurechest/prize.vue'
export default {
	components:{
		treasureChest,
		treasureDetail,
		treasurePrize
	},
	data() {
		return {
			treasureShow: false, //成长宝箱
			treasurePrizeShow :false,
			treasureDetailShow: false
		}
	},
	methods: {
		nextTreasure(state) { //成长宝箱点击下一步
			this.treasureShow = false
			switch (state) {
				case 1: //领取宝箱
					this.treasurePrizeShow = true //打开领取奖励页面
					break;
				case 2: //待领取宝箱
					this.treasureDetailShow = true //打开待领取宝箱说明
					break;
				default:
					break;
			}
		},
		nextPrize(){
			this.treasurePrizeShow = false //关闭领取奖励页面
			this.gradeMeberShow = true//打开个人中心
		},
		backTreasure(){//宝箱列表页返回
			this.treasureShow = false
			if(this.recordNext=='gradeMeberShow'){
				this.gradeMeberShow = true
			}
		},
		backchest(){//宝箱待完成页面点击返回
			this.treasureDetailShow = false
			this.treasureShow = true
		}
	}
}